/**
 * Copyright (c) 2014-2017, huli.com
 * All rights reserved.
 */
package com.xiaohujr.xuexue.rabbitmq.beans;

/**
 * @author Xue Xue (xuexue1@huli.com)
 * @version $Id$
 * @since 2018/4/19
 */
public class QueueInfo {
    private String queueName;
    private String exchangeName;
    private String routingKey;
    private String bindingKey;
    private String message;

    public QueueInfo() {
    }

    public QueueInfo(String queueName, String exchangeName, String routingKey) {
        this.queueName = queueName;
        this.exchangeName = exchangeName;
        this.routingKey = routingKey;
    }

    public String getQueueName() {
        return queueName;
    }

    public QueueInfo setQueueName(String queueName) {
        this.queueName = queueName;
        return this;
    }

    public String getExchangeName() {
        return exchangeName;
    }

    public QueueInfo setExchangeName(String exchangeName) {
        this.exchangeName = exchangeName;
        return this;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public QueueInfo setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
        return this;
    }

    public String getBindingKey() {
        return bindingKey;
    }

    public QueueInfo setBindingKey(String bindingKey) {
        this.bindingKey = bindingKey;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public QueueInfo setMessage(String message) {
        this.message = message;
        return this;
    }

    public String getQueueMapKey() {
        return this.queueName + ":" + this.bindingKey;
    }
}
